<?php
namespace App\Admin\Controllers\ApiSys;

use App\Http\Controllers\Controller;
use App\Models\Basics\ExpressChannel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class NotFBAController extends Controller{

    public function channels(Request $request)
    {
        $q = $request->get('q');
        return ExpressChannel::query()
            ->where('area_id', $q)
            ->get(['id', DB::raw('name as text')]);
    }
}
